﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Newtonsoft.Json;
using PublishNews.Entities;

namespace PublishNews.Models
{
    public class NewsModel : BaseModel
    {
        public NewsModel()
        {
            Images = new List<string>();
        }

        [JsonProperty("title")]
        public string Title { get; set; }
        [JsonProperty("content")]
        public string Content { get; set; }
        [JsonProperty("categoryId")]
        public Guid? CategoryId { get; set; }
        [JsonProperty("locationId")]
        public Guid? LocationId { get; set; }
        [JsonProperty("districtId")]
        public Guid? DistrictId { get; set; }
        [JsonProperty("userId")]
        public string UserId { get; set; }
        [JsonProperty("phoneNumber")]
        public string PhoneNumber { get; set; }

        [JsonProperty("images")]
        public List<string> Images { get; set; }
    }
}